#include "type.h"
#include "config.h"

typedef struct motor_t
{
    uint8_t number;
    uint32_t speed;
    uint8_t state;
} motor_t;

extern motor_t motors[MOTOR_COUNT];

uint32_t motor_set_speed(motor_t *motor);
uint32_t motor_get_speed(motor_t *motor);
uint32_t motor_switch_off(motor_t *motor);
